<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>1.对原生方法进行增强</title>
	</head>
	<body>
		<script type="text/javascript" >
			let arr = [1,3,5,7]

			//保存原始的push
			let originPush = Array.prototype.push
			
			//修改数组原型上的push
			Array.prototype.push = function(number){
				number++
				originPush.call(this,number)
			}
			
			arr.push(89)

		</script>
	</body>
</html>